package org.redis.cluster.redis.processor;

import org.redis.cluster.redis.transport.RedisReply;
import org.redis.cluster.redis.transport.reply.RedisNumberReply;

public class RedisNumberReplyProcessor extends AbstractRedisSingleReplyProcessor<RedisNumberReply> {

	@Override
	public Class<? extends RedisReply> getSupportClass() {
		return RedisNumberReply.class;
	}

	@Override
	protected Object getValue(RedisNumberReply reply) {
		return reply.getNumber();
	}

	@Override
	protected byte getStartByte() {
		return RedisReply.INTEGER_START;
	}

}